package demo;

import java.util.List;

public class Cutter implements Person{
    
    public static final int DEFAULT_AGE = 18;
    private int age;
    private Axe axe;

    private List<?> hobbies;  // Set Map Properties 

    public Cutter()
    {
        //default constuctor
    }

    //cloze 实现一个 带参数的构造函数, 分别传入 Axe axe 和 int age
    
    public void setAxe(Axe axe) {
        this.axe = axe;
    }
    public int getAge()
    {
        return this.age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    
    public void setHobbies(List<?> hobbies) {
        this.hobbies = hobbies;
    }
    @Override
    public void useAxe() {
        System.out.println("I'm " + this.getAge() + " years old.");
        axe.chop();
        System.out.println(hobbies);
    }
    
}
